/*
 * redirect.c
 *
 *  Created on: 2024-01-01
 *      Author: liaofd
 */
#include "cmsis_os.h"
#include <errno.h>
#include <stdint.h>

void* malloc(size_t size) 
{
	void *ptr = pvPortMalloc(size);
	if (ptr == NULL) 
    {
		errno = ENOMEM;
	}
	return ptr;
}

void free(void* ptr) 
{
    vPortFree(ptr);
}
